package com.neu.constant;

public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    NOT_FOUND(404, "接口不存在"),
    PARAM_ERROR(600, "参数错误"),
    PARAM_CHECK_ERROR(601, "参数校验错误"),
    EXCEL_ERROR(700, "表格导入失败"),
    EXCEL_PLAN_STATUS_ERROR(701, "项目工作计划状态错误"),
    EXCEL_PLAN_DATE_ERROR(702, "项目工作计划起止时间错误"),
    EXCEL_PROJECT_PROVINCE_ERROR(710, "项目所在省份错误"),
    EXCEL_PROJECT_TYPE_ERROR(711, "项目类型错误"),
    EXCEL_PROJECT_STATUS_ERROR(712, "项目状态错误"),
    NOT_LOGIN(800, "账号未登录"),
    NOT_ROLE(801, "账号角色无权限"),
    ACCOUNT_EXISTED(802, "用户名已存在"),
    LOGIN_FAIL(803, "账号或密码错误,登陆失败"),
    FAIL(900, "失败");

    private int code;
    private String msg;

    ResultCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public int getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
